package framework.mapstruct;

/**
 * @author ME
 * @date 2020/11/3
 */
public class CarVo {

    private Integer id;
    private String brand;
    private String name;
    private String createTime;
    private double price;
    private String color;

    public CarVo() {
    }

    public CarVo(Integer id, String brand, String name, String createTime, double price, String color) {
        this.id = id;
        this.brand = brand;
        this.name = name;
        this.createTime = createTime;
        this.price = price;
        this.color = color;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "CarVo(id=" + this.id + ", brand=" + this.brand + ", name=" + this.name + ", createTime=" + this.createTime
                + ", price=" + this.price + ", color=" + this.color+ ")";
    }

    public static CarVo.CarVoBuilder builder() {
        return new CarVo.CarVoBuilder();
    }

    public static class CarVoBuilder {
        private Integer id;
        private String brand;
        private String name;
        private String createTime;
        private double price;
        private String color;

        CarVoBuilder() {
        }

        public CarVo.CarVoBuilder id(Integer id) {
            this.id = id;
            return this;
        }

        public CarVo.CarVoBuilder brand(String brand) {
            this.brand = brand;
            return this;
        }

        public CarVo.CarVoBuilder name(String name) {
            this.name = name;
            return this;
        }

        public CarVo.CarVoBuilder createTime(String createTime) {
            this.createTime = createTime;
            return this;
        }

        public CarVo.CarVoBuilder price(double price) {
            this.price = price;
            return this;
        }

        public CarVo.CarVoBuilder color(String color) {
            this.color = color;
            return this;
        }

        public CarVo build() {
            return new CarVo(this.id, this.brand, this.name, this.createTime, this.price, this.color);
        }

        @Override
        public String toString() {
            return "CarVo.CarVoBuilder(id=" + this.id + ", brand=" + this.brand + ", name=" + this.name + ", createTime=" + this.createTime
                    + ", price=" + this.price + ", color=" + this.color+ ")";
        }
    }
}
